import { AROUND_TYPES_URL, CITY_LIST_URL, MOVIE_TYPES_URL, SHOW_LIST_URL,SHOW_DETAIL_URL } from '../config/urls.config'
import Ajax from './Ajax'

export function getMoviesApi(){
    return Ajax({
        url:MOVIE_TYPES_URL,
        method:'GET'
    })
}

export function getShowListApi(params){
    return Ajax({
        url:SHOW_LIST_URL,
        method:'GET',
        params
    })

}

export function getAroundTypesApi(){
    return Ajax({
        url:AROUND_TYPES_URL,
        method:'GET',
    })
}


export function getCityListApi(){
    return Ajax({
        url:CITY_LIST_URL,
        method:'GET'
    })
}

export function getDetail(id){
    return Ajax({
        url:SHOW_DETAIL_URL + '/' + id,
        method:'GET'
    })
}